package com.hzhr.iot.huaweiiot.convertor;

import com.hzhr.iot.huaweiiot.convertor.custom.*;
import com.hzhr.iot.core.util.HzhrTypeUtil;
import com.hzhr.iot.core.util.HzhrJsonUtil;
import java.util.Map;
import com.hzhr.iot.huaweiiot.entity.HuaweiiotAppEntity;
import com.hzhr.iot.huaweiiot.entity.ext.HuaweiiotAppEntityExt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.hzhr.iot.huaweiiot.queryModel.custom.HuaweiiotAppCustomQueryModel;

@Component
public class HuaweiiotAppConvertor {



    public HuaweiiotAppCustomQueryModel query2queryModel(Map<String, Object> query) {
        HuaweiiotAppCustomQueryModel queryModel = new HuaweiiotAppCustomQueryModel();


        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }

}

